import request from "@/utils/request";
const BASE_URL = "admin";

//查
export const queryPatientTreatmentInfo = (params) =>
  request.get(`${BASE_URL}/patient/patientTreatmentInfo`, { params });

//编辑
export const updatePatientTreatmentInfo = (params) => {
  const { patientId } = params;
  return request.put(`${BASE_URL}/patient/updatePatientTreatmentInfo`, params, {
    params: {
      id: patientId,
    },
  });
};

//删除
export const deletePatientTreatmentInfo = (id) =>
  request.delete(`${BASE_URL}/patient/deletePatientTreatmentInfo`, {
    params: id,
  });

//新增
export const addPatientTreatmentInfo = (params) =>
  request.post(`${BASE_URL}/patient/addPatientTreatmentInfo`, params);

//查partment下拉框
export const queryDepartment = (params) =>
  request.get(`${BASE_URL}/departmentInfo`,  params );